﻿using ModernChannel.Model.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ModernChannel.Model.Interface
{
    public interface IDistrictProvider
    {
        List<District> SearchDistricts(out int totalRecord, string DistrictIdentifier, string districtName,
            decimal? lng, decimal? lat, string provinceIdentifier,
            int pagesize = 0, int pageindex = 0);

        List<District> SearchDistricts(out int totalRecord, string textSearch = null, int pageSize = 0, int pageIndex = 0);

        District RetrieveDistrict(string DistrictIdentifier);

        bool Add(District record);

        bool Update(District record);

        bool Delete(int districtId);
    }
}
